import React from 'react';
import { Router, Route, Switch } from 'dva/router';
import IndexPage from './routes/index/IndexPage';
import Laundry_home from './routes/laundry_basket/laundry_home/laundry_home';
import Mine_home from './routes/mine_home/mine_home';
import laundry_editor from './routes/laundry_basket/laundry_editor/laundry_editor';
import Laundry_submit from './routes/laundry_basket/laundry_submit/laundry_submit';
import Laundry_details from './routes/laundry_basket/laundry_details/laundry_details';
import Mine_all from './routes/mine_home/mine_all/mine_all';
import Mine_details from './routes/mine_home/mine_details/mine_details';
import Mine_evaluation from './routes/mine_home/mine_evaluation/mine_evaluation.js';
import HomeBanner from './routes/index/HomeBanner/HomeBanner';
import Loading from './routes/loading/loading.js';
import NoAgent from './routes/NoAgent/NoAgent.js';
import AboutUs from './routes/mine_home/AboutUs/AboutUs.js';
import Test from './routes/Teste/Test.js';


function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Switch>
        <Route path="/" exact component={IndexPage} />
         <Route path="/Laundry_home"  component={Laundry_home} />
         <Route path="/Mine_home"  component={Mine_home} />
         <Route path="/laundry_editor"  component={laundry_editor} />
         <Route path="/Laundry_submit"  component={Laundry_submit} />
         <Route path="/Laundry_details"  component={Laundry_details} />
         <Route path="/Mine_all"  component={Mine_all} />
         <Route path="/Mine_details"  component={Mine_details} />
         <Route path="/Mine_evaluation"  component={Mine_evaluation} />
         <Route path="/HomeBanner"  component={HomeBanner} />
         <Route path="/Loading"  component={Loading} />
         <Route path="/NoAgent"  component={NoAgent} />
         <Route path="/AboutUs"  component={AboutUs} />
         <Route path="/Test"  component={Test} />


      </Switch>
    </Router>
  );
}

export default RouterConfig;
